.main-container {
  background: #EEF4F9;

  .top-bar {
    background: #F5F7F9;
    position: relative;
    height: 100px;
    display: inline-block;
    width: 100%;
    line-height: 100px;

    .top-info-box {
      width: 100%;
      height: 100px;

      ul {
        display: flex;
        justify-content: center;

        li {
          margin: 0 10px;
          padding: 25px 0;
          display: flex;
          min-width: 120px;

          .prefix {
            width: 5px;
            display: flex;
            flex-direction: column;
            margin-right: 20px;
            padding-top: 5px;

            .point {
              width: 5px;
              height: 5px;
              background-size: 100% 100%;
              background: url("../../../../assets/images/gate/point-icon.png") no-repeat center;
            }

            .line {
              width: 1px;
              height: 40px;
              margin: 0 2px;
              background-size: contain;
              background: url("../../../../assets/images/gate/line-icon.png") no-repeat center;
            }
          }

          p {
            margin: 0;
            height: 24px;
            line-height: 24px;
          }

          .title {
            font-size: 14px;
            color: #596186;
            height: 26px;
            line-height: 26px;
          }

          .num {
            font-size: 18px;
            color: #353571;
            font-weight: bold;
            margin-right: 5px;
          }

          .unit {
            font-size: 13px;
            color: #4D4D8C;
          }
        }
      }

      .select-wrap {
        position: absolute;
        top: 0;
        left: 50px;
      }
    }

    .right-btn {
      position: absolute;
      right: 10px;
      top: 0;
    }
  }

  //.main-wrap.main-wrap-168 {
  //  background: url("../../../../assets/images/gate/bg_suo_1.png") no-repeat center;
  //  background-size: auto;
  //}
  .main-wrap.main-wrap-169, .main-wrap.main-wrap-168 {
    background: none;
    background-size: auto;
  }
  .main-wrap {
    padding: 0 10px;
    height: calc(100vh - 150px);
    overflow: hidden;
    background: url("../../../../assets/images/gate/bg.png") no-repeat center;
    background-size: 100% 100%;
    position: relative;

    .high-light-section-box {
      position: absolute;
      width: 100%;
      height: 63vh;
      top: 0;

      .section-wrap {
        position: absolute;
        cursor: pointer;
        z-index: 100;

        .section-img {
          height: 12vh;

          img {
            display: none;
            width: 100%;
          }
        }

        .connect-line {
          position: absolute;
          width: 4px;
          //background: #333;
        }

        .connect-line:after {
          content: '';
          position: absolute;
          top: 0;
          width: 0;
          border-top: none;
          border-bottom: none;
          border-left: 4px dashed #f9913b;
          //background: linear-gradient(bottom, #f8d6c1, #f9913b);
          //background: -moz-linear-gradient(bottom, #f8d6c1, #f9913b);
          //background: -ms-linear-gradient(bottom, #f8d6c1, #f9913b);
          //background: -o-linear-gradient(bottom, #f8d6c1, #f9913b);
          //background: -webkit-linear-gradient(bottom, #f8d6c1, #f9913b);
          //border-radius: 2px;
          //transform: translate(-50%);
        }

        @keyframes spread-line {
          from {
            height: 0;
          }
          to {
            height: 100%;
          }

        }

        &:hover {
          .section-img {
            img {
              display: block;
            }
          }
        }
      }

      .section-wrap.active {
        .section-img {
          img {
            display: block;
          }
        }

        .connect-line:after {
          animation: spread-line 2s linear;
          animation-fill-mode: forwards;
        }
      }
    }

    .center-box {
      width: 100%;
      height: 63vh;
      overflow-x: auto;
      overflow-y: hidden;
      position: relative;
      display: flex;
      background: rgba(255, 255, 255, 0);
      border: 1px solid #DAE5F0;
      box-shadow: 0px 10px 18px 2px rgba(54, 101, 171, 0.1);
      border-radius: 8px;
      margin-top: 10px;

      .flow-line-1 {
        position: absolute;
        top: calc(50% - 50px);
        left: 0;
        background: url("../../../../assets/images/gate/flow-line-1.png") no-repeat center;
        background-size: 100% 100%;
        width: 190vw;
        height: 100px;
      }
      .flow-line-168 {
        position: absolute;
        top: calc(50% - 50px);
        left: 5vw;
        background: url("../../../../assets/images/gate/bg_suo_1.png") no-repeat;
        background-size: 130% 100%;
        width: 90vw;
        height: 100px;
      }
      .flow-line-169 {
        position: absolute;
        top: calc(50% - 50px);
        left: 0;
        background: url("../../../../assets/images/gate/bg_suo_2.png") no-repeat center;
        background-size: 100% 100%;
        width: 100%;
        height: 100px;
      }
      .sub-box {
        width: 10vw;
        min-width: 150px;
        //padding: 10px 0 0 10px;
        position: absolute;

        .icon {
          width: 42px;
          height: 30px;
          left: 23px;
        }
        .line {
          width: 10px;
          left: 40px;
        }
        .line, .icon {
          position: absolute;
        }
        .info-box {
          //height: 100%;
          position: relative;
          background: #FFFFFF;
          border-radius: 4px;
          padding: 10px 5px 5px;
          box-shadow: 0px 10px 18px 1px rgba(53, 100, 171, 0.1);

          &:hover {
            cursor: pointer;
          }

          p {
            margin: 0;
          }

        }
      }

      .gate-box {
        z-index: 100;
        p.title {
          background-size: cover;
          position: absolute;
          width: 6vw;
          text-align: center;
          color: #fff;
          top: 0;
          right: 0;
          border-top-right-radius: 4px;
        }

        p.top {
          position: absolute;
          font-weight: bold;
          color: #43556D;
          top: 0;
          left: 0;
          font-size: 12px;
          padding: 5px 0 0 10px;
        }

        .middle-box {
          color: #5F7592;
          font-size: 12px;
          padding: 25px 10px 5px;
          margin-top: 0;

          .inline-box {
            display: flex;
            padding: 0 3px;

            span {
              min-width: 26px;
              font-size: 12px;
              font-weight: normal;
              color: #43556D;
              margin-right: 5px;
            }

            nz-progress {
              flex: 1;
            }
          }

          span {
            font-weight: bold;
            font-size: 14px;
          }
        }

        ::ng-deep nz-divider.custom-divider {
          margin: 0;
        }

        p.warning-level {
          color: #555555;
          font-size: 12px;
          padding: 5px 10px 0;

          span {
            color: #43556D;
            font-size: 14px;
            font-weight: bold;
          }
        }
      }

      .duanmian-box {
        .duanmian-icon {
          background: url("../../../../assets/images/gate/duanmian-icon.png") no-repeat center;
        }
        .duanmian-line {
          top: 100%;
          background: url("../../../../assets/images/gate/dot.png") repeat-y center;
        }
        p.title {
          background: url("../../../../assets/images/gate/blue-bg.png") no-repeat center;
          background-size: contain;
          position: absolute;
          width: 9vw;
          text-align: center;
          color: #fff;
          top: -1px;
        }

        .middle-box {
          color: #5F7592;
          font-size: 12px;
          padding: 10px;
          margin-top: 10px;

          span {
            font-weight: bold;
            font-size: 14px;
          }
        }

        ::ng-deep nz-divider.custom-divider {
          margin: 0;
        }

        p.warning-level {
          color: #555555;
          font-size: 12px;
          padding: 5px 10px 0;

          span {
            color: #00B428;
            font-size: 14px;
            font-weight: bold;
          }
        }
      }
    }


    .jiezhi-box {
      .jiezhizha-icon {
        background: url("../../../../assets/images/gate/jiezhizha-icon.png") no-repeat center;
      }
      .jiezhizha-line {
        top: 100%;
        background: url("../../../../assets/images/gate/dot.png") repeat-y center;
      }
      p.title {
        background: url("../../../../assets/images/gate/purple-bg.png") no-repeat center;
      }
    }

    .tuishui-box {
      width: 10.5vw;
      .tuishui-icon {
        background: url("../../../../assets/images/gate/tuishuizha-icon.png") no-repeat center;
      }
      .tuishui-line {
        bottom: 100%;
        background: linear-gradient(#00c0fa, #015eea);
      }
      p.title {
        width: 7vw;
        background: url("../../../../assets/images/gate/pink-bg.png") no-repeat center;
      }
    }
  }

  .bottom-box {
    //height: 40vh;
    height: 15vh;
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 35px;
    padding: 5px 10px;
    background: #C0D2E3;
    opacity: 0.5;
    border-radius: 10px;

    .bottom-main-box {
      height: calc(15vh - 10px);
      overflow-x: hidden;
      overflow-y: auto;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-around;

      .sub-bottom-box {
        width: 10%;
        padding: 5px 0 0 5px;

        .info-box {
          height: calc(100% - 20px);
          background: #FFFFFF;
          margin: 5px 5px 0 0;
          box-shadow: inset 0px 1px 14px 3px rgba(53, 100, 171, 0.1);
          border-radius: 4px;
          padding: 10px 5px;

          &:hover {
            cursor: pointer;
            box-shadow: 5px 8px 4px 1px rgba(11, 19, 38, 0.1);
          }
        }
      }
    }

  }

  .box-title {
    margin: 0;
    height: 20px;
    font-size: 14px;
    font-weight: 600;

    span {
      display: inline-block;
    }

    .title-icon {
      width: 4px;
      height: 12px;
      border-radius: 2px;
      margin: 4px 10px 4px 5px;
      float: left;
    }
  }

  .box-content {
    height: 9vh;
    margin: 0;
    font-size: 14px;
    display: flex;
    padding: 10px 5px;
    position: relative;

    .prefix {
      //width: 100px;
      width: calc(9vh - 20px);
      display: flex;
      //flex-direction: column;
      //margin-right: 9px;
      //padding: 5px 0;
      transform: rotate(270deg);
      -ms-transform: rotate(270deg); /* IE 9 */
      -moz-transform: rotate(270deg); /* Firefox */
      -webkit-transform: rotate(270deg); /* Safari 和 Chrome */
      -o-transform: rotate(270deg); /* Opera */
      position: absolute;
      top: 30px;
      left: -26px;

      nz-progress {
        flex: 1;
      }

      .point {
        width: 5px;
        height: 5px;
        background-size: 100% 100%;
        background: url("../../../../assets/images/gate/point-icon.png") no-repeat center;
      }

      .line {
        width: 1px;
        flex: 1;
        margin: 0 2px;
        background: url("../../../../assets/images/gate/line-icon.png") repeat-y;
      }
    }

    .content {
      position: absolute;
      //top: 5px;
      top: 12px;
      left: 25px;

      p {
        line-height: 30px;
      }
    }

    p {
      line-height: 20px;
      font-size: 12px;
      margin: 0;

      span.value {
        font-weight: bold;
      }
    }
  }

  .open {
    .title-icon, .status-icon, .info-icon {
      background-color: #2196F3;
    }
  }

  .close {
    .title-icon, .status-icon, .info-icon {
      background-color: #F44336;
    }
  }

  .stop {
    .title-icon, .status-icon, .info-icon {
      background-color: #9B9B9B;
    }
  }
}
